package com.hp.modules.sys.entity;

import com.hp.common.base.YesNoEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import tk.mybatis.mapper.annotation.LogicDelete;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author:mcfan
 * @description:实体类
 * @date: create in 10:02 2021/3/31
 */
@Table(name = "sys_config")
@ApiModel(description = "参数配置")
public class SysConfig implements Serializable {
    /**
     *
     */
    @Id
    @ApiModelProperty(value = "编号")
    private Long id;
    @ApiModelProperty(value = "参数名称")
    private String configName;
    @ApiModelProperty(value = "参数键名")
    private String configKey;
    @ApiModelProperty(value = "参数键值")
    private String configValue;
    @ApiModelProperty(value = "系统内置(1->否|NO,2->是|YES)")
    private YesNoEnum isSystem;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "是否删除(1->未删除|NO,2->已删除|YES)")
    @LogicDelete(isDeletedValue = YesNoEnum.Y, notDeletedValue = YesNoEnum.N)
    private YesNoEnum isDeleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public String getConfigKey() {
        return configKey;
    }

    public void setConfigKey(String configKey) {
        this.configKey = configKey;
    }

    public String getConfigValue() {
        return configValue;
    }

    public void setConfigValue(String configValue) {
        this.configValue = configValue;
    }

    public YesNoEnum getIsSystem() {
        return isSystem;
    }

    public void setIsSystem(YesNoEnum isSystem) {
        this.isSystem = isSystem;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public YesNoEnum getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(YesNoEnum isDeleted) {
        this.isDeleted = isDeleted;
    }
}
